//
//  DestHeaderCollectionReusableView.m
//  TravelEveryDay
//
//  Created by dlios on 15/10/19.
//  Copyright © 2015年 com.lanou3g. All rights reserved.
//

#import "DestHeaderCollectionReusableView.h"
#import "BaseHeader.h"
@implementation DestHeaderCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _destHeaderImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, frame.size.height - 70 *HEIGHT)];
        _destNameLabel = [[UILabel alloc]initWithFrame:CGRectMake(10 *WIDTH, frame.size.height - 160*HEIGHT, 200, 40 *HEIGHT)];
        _destNameLabel.textColor = [UIColor whiteColor];
        _destGoOrWantToGoLabel  = [[UILabel alloc]initWithFrame:CGRectMake(10 *WIDTH, frame.size.height - 120*HEIGHT, 200 *WIDTH, 20 *HEIGHT)];
        _destGoOrWantToGoLabel.textColor = [UIColor whiteColor];
        _destPhtotoesImageView = [[UIImageView alloc]initWithFrame:CGRectMake(315*WIDTH, frame.size.height - 120 *HEIGHT, 30*WIDTH, 30*HEIGHT)];
        _destPhtotoesImageView.image  =[UIImage imageNamed:@"Desticonfont-photo.png"];
        _hotLabel = [[UILabel alloc]initWithFrame:CGRectMake((SCREEN_WIDTH - 100)/2, frame.size.height -25, 100, 30)];
        _hotLabel.textAlignment = NSTextAlignmentCenter;
        UILabel *leftLabel = [[UILabel alloc]initWithFrame:CGRectMake(70*WIDTH, frame.size.height - 12.5 *HEIGHT, 50 *WIDTH, 2 *HEIGHT)];
        leftLabel.backgroundColor = [UIColor lightGrayColor];
        UILabel *circleLabel = [[UILabel alloc]initWithFrame:CGRectMake(leftLabel.frame.size.width +leftLabel.frame.origin.x +3 *WIDTH, frame.size.height - 13.5 *HEIGHT, 4*HEIGHT, 4*HEIGHT)];
        circleLabel.layer.cornerRadius = 2 *HEIGHT;
        circleLabel.layer.masksToBounds = YES;
        circleLabel.backgroundColor = [UIColor lightGrayColor];
        UILabel *rightLabel = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH - 120* WIDTH, frame.size.height - 12.5 *HEIGHT, 50 * WIDTH, 2 * HEIGHT)];
        rightLabel.backgroundColor = [UIColor lightGrayColor];
        UILabel *circleRightLabel = [[UILabel alloc]initWithFrame:CGRectMake(rightLabel.frame.origin.x - 7*WIDTH, frame.size.height - 13.5 *HEIGHT, 4 *HEIGHT, 4 *HEIGHT)];
        circleRightLabel.layer.cornerRadius = 2 *HEIGHT;
        circleRightLabel.layer.masksToBounds = YES;
        circleRightLabel.backgroundColor = [UIColor lightGrayColor];
        [self addSubview:circleRightLabel];
        [self addSubview:rightLabel];
        [self addSubview:circleLabel];
        [self addSubview:leftLabel];
        [self addSubview:_hotLabel];
        [self addSubview:_destHeaderImageView];
        [self addSubview:_destNameLabel];
        [self addSubview:_destGoOrWantToGoLabel];
        [self addSubview:_destPhtotoesImageView];
        
    }
    return self;
}
@end
